package com.exp.collection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class NumberListColl {
	public static void main(String[] args) {
		/*  Different data Types under Single List */
		
	/*	Byte b1=10;
		List<Number> los=new ArrayList<Number>();
	    los.add(new Short((short) 1));
	    los.add(new Byte(b1));
	    los.add(new Integer(1046598367));
	    los.add(new Long(1036496));
		los.add(new Double(10.74356783));
		los.add(new Float(10.376));
		System.out.println(los);
		*/
		
		ArrayList<String> scientist=new ArrayList<String>();
		scientist.add("Peter Neumann");
		scientist.add("Thompson");
		scientist.add("Ritchie");
		scientist.add("Donn Seeley");
		scientist.add("Mike Karels");
		scientist.add("Bill Jolitz");
		scientist.add("Trent Hein");
		System.out.println("unsorted:"+scientist);
		Collections.sort(scientist);
		System.out.println("sorted:"+scientist);
	}

}
